package com.easylinkin.linkappapi.meterbilling.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * class info :合同信息实体类
 *
 * @author liuqihang
 * @date 2021/7/13 15:49
 */
@Data
@Accessors(chain = true)
@TableName(value = "cbjf_tenantry_info")
public class RoomTenantryInfo {

    @TableId(type= IdType.AUTO)
    private Integer id;

    /**
     * 房间ID
     */
    @TableField(value = "room_id")
    private Integer roomId;

    /**
     * 住户ID
     */
    @TableField(value = "resident_id")
    private Integer residentId;

    /**
     * 合同开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "contract_start_time")
    private Date contractStartTime;

    /**
     * 合同结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "contract_end_time")
    private Date contractEndTime;

    /**
     * 删除状态（0：正常，1：删除）
     */
    @TableField(value = "delete_status")
    private Integer deleteStatus;

    /**
     * 锁定状态（0：正常，1：锁定）
     */
    @TableField(value = "lock_status")
    private Integer lockStatus;

    /**
     * 绑定房间状态（0：绑定，1：解绑）
     */
    @TableField(value = "bind_status")
    private Integer bindStatus;


    /**
     * '创建时间'
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * '租户ID'
     */
    @TableField(value = "tenant_id")
    private String tenantId;

}
